#!/bin/bash

# Copyright (c) 2022 FuTeng
# FuYao-RepoPackageTest-System is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#          http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.

# #################################################
# @Author    :   futeng
# @Contact   :   lanshaa123@163.com
# @Desc      :   扶摇docker版全局变量脚本
# @Note      :   宿主机需要安装docker
# #################################################

WORK_DIR=$(pwd)
# WORK_DIR=$(cd $(dirname $0); pwd)

# docker镜像名称后缀的UUID
# I_UUID=$(cat $WORK_DIR/UUID)
I_UUID=`cat $WORK_DIR/UUID`

# 执行脚本目录，存放在宿主机执行的脚本
SCRIPTS_DIR=$WORK_DIR/scripts

# 执行脚本目录，存放在容器执行的测试脚本
TEST_SCRIPTS_DIR=$WORK_DIR/test-scripts

# 存放被测软件包清单目录
PACKAGE_LIST_DIR=$WORK_DIR/pkg-lists

# 存放制作的docker镜像的目录
DOCKER_IMAGE_DIR=$WORK_DIR/docker-images

# 存放被测仓库repo文件的目录
REPO_FILE_DIR=$WORK_DIR/repo-file

# 存放测试结果的目录
TEST_RESULT_DIR=$WORK_DIR/testResults

# 存放测试log的目录
TEST_LOG_DIR=$WORK_DIR/exec-log

# 执行测试临时目录
TEST_TEMP=$WORK_DIR/temp

# # 时间变量
# DATE=`date +%Y-%m-%d-%H-%M-%S`